// import { useRoutes } from 'react-router'
// // import { route } from './router/router'
// import AppRouter from '@/router/appRouter';
// import { useSelector } from 'react-redux'
// function App() {
//   const router = useSelector(state=>state.routes)
//   // console.log(route);
//   return <AppRouter/>
// }

// export default App;


import { useRoutes } from 'react-router'
import { route } from './router/router'
console.log(route);
function App() {
  return useRoutes(route)
}

export default App;